package com.zhx.springbeancontext;

public class UserService {
    private String name;
    private UserDao userDao;
    private String company;
    private String location;


    public UserService(String name) {
        this.name = name;
    }
    public UserService() {
    }

    public void queryUserInfo(){
        System.out.println("name=="+name+" company=="+company+" location=="+location);
        userDao.queryUserInfo();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
